package com.peas.platform.module.icims.base.mdm.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("机场")
public class AirportVo extends BaseVo {

    @Comment(value = "机场类型", enumType = "AirportType")
    @ApiModelProperty(value = "机场类型", notes = "枚举取值:AirportType")
    @NotBlank(message = "机场类型不能为空")
    @Size(max = 20, message = "机场类型不能超过20个字符")
    private String airportType;

    @Comment(value = "机场三字码")
    @ApiModelProperty(value = "机场三字码")
    @Size(max = 100, message = "机场三字码不能超过100个字符")
    private String airportCode;

    @Comment(value = "机场名称")
    @ApiModelProperty(value = "机场名称")
    @NotBlank(message = "机场名称不能为空")
    @Size(max = 200, message = "机场名称不能超过200个字符")
    private String airportName;

    // （行政区表）外键
    @Comment(value = "城市ID")
    @ApiModelProperty(value = "城市ID")
    private Long cityId;

    @Comment(value = "ICAO代码")
    @ApiModelProperty(value = "ICAO代码")
    @Size(max = 20, message = "ICAO代码不能超过20个字符")
    private String icao;

    @Comment(value = "状态", enumType = "CommonEnableDisable")
    @ApiModelProperty(value = "状态", notes = "枚举取值:CommonEnableDisable")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

    @Comment(value = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

}
